package com.cxw.healthserver.controller

import com.cxw.healthserver.annotation.PassToken
import com.cxw.healthserver.response.BaseResponse
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController

/**
 * @createTime 2024/6/23 9:07
 * @author 崔兴旺
 * @description
 */
@RestController
@RequestMapping("api")
class PingController {
    /**
     * ping服务器,用来判断是否能够连接上服务器
     */
    @PassToken
    @GetMapping("ping")
    fun ping(): BaseResponse<Any> {
        return BaseResponse.success("成功")
    }
}